package com.attendance.mapper;

import com.attendance.entity.Flag;
import com.attendance.entity.FlagClockRecord;
import com.attendance.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FlagMapper {

    void insert(Flag flag);

    List<Flag> selectFlagByEmail(String email);

    List<Flag> selectFlagOverByEmail(String email);

    List<FlagClockRecord> selectFlagByEmailAndID(@Param("email") String email, @Param("flag_id") Integer flag_id);

    void clockingFlag(FlagClockRecord flagClockRecord);


}
